﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using QuanLyDiem.models;
using System.Windows.Forms;
namespace QuanLyDiem.Controllers
{
    class C_Lop
    {
        public static void LoadViewBindingSource(BindingSource bindingSource, Context db = null)
        {
            if (db == null) db = new Context();

            bindingSource.DataSource = db.Lops.OrderBy(a => a.ID_lop).ToList();
        }

    }
}
